package ${basePackage};

<#list importList as import>
<#--循环中的变量出了循环就消失-->
import ${import};
</#list>
import javax.persistence.Id;
import javax.persistence.Table;

/**
* @Author: smili
*/
@Table(name = "${tableName}")
public class ${className}{

    <#list columnInfoList as columnInfo>
    <#--循环中的变量出了循环就消失-->
    <#if columnInfo.remark??>
    //${columnInfo.remark}
    </#if>
    <#if columnInfo.lowerCamelName==pkName>
    @Id
    </#if>
    private ${columnInfo.javaType} ${columnInfo.lowerCamelName};

    </#list>

    <#list columnInfoList as columnInfo>
    public ${columnInfo.javaType} get${columnInfo.upperCamelName}(){
        return ${columnInfo.lowerCamelName};
    }

    public void set${columnInfo.upperCamelName}(${columnInfo.javaType} ${columnInfo.lowerCamelName}){
        this.${columnInfo.lowerCamelName} = ${columnInfo.lowerCamelName};
    }

    </#list>

}